99乘法表變化版

#C#

Posted by Phyxsius on 2023-09-14

namespace ConsoleApp3
{
    internal class Program
    {
        static void Main(string[] args)
        {
            //呼叫方法
            ShowData(6, 8);
        }

        static void ShowData(int min, int max)
        {
            for (int i = min; i <= max; i++)
            {
                for (int j = min; j < max; j++)
                {
                    Console.Write(i + " * " + j + " = " + i * j + "\t");
                }
                Console.WriteLine();
            }
        }
    }
}

#C#







Related Posts

GraphQL(1) - 簡介 & 語法

GraphQL(1) - 簡介 & 語法

[Power BI] 讀書會 #2 Analysis Services 概念(1)

[Power BI] 讀書會 #2 Analysis Services 概念(1)

AWS Solutions Architect - Associate (SAA) 學習計畫與備考心得: Module 2

AWS Solutions Architect - Associate (SAA) 學習計畫與備考心得: Module 2


Comments